/* static/css/style.css */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: #2c3e50;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: #34495e;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2c3e50;
    list-style: none;
    min-width: 150px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: none;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #ecf0f1;
}

.dropdown-menu a:hover {
    background-color: #34495e;
}

.user-info {
    color: #ecf0f1;
    padding: 8px 12px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* 消息提示 */
.messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.alert {
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideInRight 0.3s ease-out;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert.fade-out {
    opacity: 0;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 页面头部 */
.page-header {
    margin: 40px 0 30px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    color: #666;
}

.page-actions {
    margin-top: 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-primary {
    background-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.btn-edit {
    background-color: #f39c12;
}

.btn-edit:hover {
    background-color: #e67e22;
}

.btn-publish {
    background-color: #27ae60;
}

.btn-publish:hover {
    background-color: #229954;
}

.btn-rating {
    background-color: #e74c3c;
}

.btn-rating:hover {
    background-color: #c0392b;
}

/* 分类Tab切换 */
.category-tabs {
    margin: 30px 0;
}

.tab-list {
    display: flex;
    list-style: none;
    border-bottom: 2px solid #ddd;
    padding: 0;
    margin: 0;
    overflow-x: auto;
}

.tab-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-item:hover {
    background-color: #f8f9fa;
}

.tab-item.active {
    border-bottom-color: #3498db;
    color: #3498db;
    background-color: #f8f9fa;
}

/* 首页故事卡片网格布局 */
.home-story-grid {
    margin: 30px 0;
}

.home-story-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.home-story-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* 故事库故事卡片网格布局 */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.library-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.story-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.card-cover {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.card-cover a {
    display: block;
    width: 100%;
    height: 100%;
}

.card-cover a:hover img {
    transform: scale(1.05);
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cover-text {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    height: 100%;
}

.card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    flex: 0 0 auto;
}

.card-content h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.card-content h3 a:hover {
    color: #3498db;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #666;
    flex: 0 0 auto;
}

.author, .category, .rating {
    display: flex;
    align-items: center;
}

.star-rating {
    color: #f39c12;
    margin-right: 3px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.card-excerpt {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 0.9rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
    flex: 0 0 auto;
}

.views, .date {
    display: flex;
    align-items: center;
}

.views:before {
    content: "👁️ ";
    margin-right: 3px;
}

/* 无内容提示 */
.no-stories, .no-comments {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    color: #666;
}

.no-stories a, .no-comments a {
    display: inline-block;
    margin-top: 20px;
}

/* AI故事生成表单 */
.story-form-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 40px 0;
}

.story-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.help-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 8px;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

/* 故事详情页面 */
.story-detail {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 40px;
    margin: 40px 0;
}

.story-header {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.story-cover {
    width: 300px;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.story-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-text {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.story-title-section {
    flex: 1;
}

.story-title-section h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

.story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 1rem;
    color: #666;
}

/* 我的故事页面样式 */
.my-stories-list {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 30px;
    margin: 30px 0;
}

.story-item {
    display: flex;
    gap: 25px;
    padding: 25px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    background-color: #fafafa;
    align-items: stretch;
}

.story-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.story-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 180px;
    flex-shrink: 0;
}

.story-cover {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.story-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-cover img:hover {
    transform: scale(1.05);
}

.cover-text {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    height: 100%;
}

.story-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.story-info h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.story-info h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.story-info h3 a:hover {
    color: #3498db;
}

.story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

.story-meta .category {
    background-color: #e3f2fd;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.story-meta .status {
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.story-meta .status-published {
    background-color: #e8f5e9;
    color: #4caf50;
}

.story-meta .status-pending {
    background-color: #fff3e0;
    color: #ff9800;
}

.story-meta .status-rejected {
    background-color: #ffebee;
    color: #f44336;
}

.story-meta .status-draft {
    background-color: #f5f5f5;
    color: #9e9e9e;
}

.story-meta .date {
    display: flex;
    align-items: center;
}

.story-meta .views {
    display: flex;
    align-items: center;
}

.story-meta .rating {
    display: flex;
    align-items: center;
}

.star-rating {
    color: #f39c12;
    margin-right: 5px;
}

.story-excerpt {
    color: #495057;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
}

.story-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
}

.story-actions .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s;
    text-align: center;
    box-sizing: border-box;
    min-height: 30px;
    min-width: 60px;
}

.story-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.status-pending {
    display: inline-block;
    padding: 6px 10px;
    background-color: #fff3e0;
    color: #ff9800;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.85rem;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-pending-inline {
    display: inline-block;
    padding: 6px 10px;
    background-color: #fff3e0;
    color: #ff9800;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85rem;
    margin-left: 10px;
}

.no-stories {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 60px 30px;
    text-align: center;
    margin: 30px 0;
}

.no-stories p {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .story-item {
        flex-direction: column;
    }
    
    .story-left {
        width: 100%;
        align-items: center;
    }
    
    .story-cover {
        width: 100%;
        height: 200px;
    }
    
    .story-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .story-actions {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .story-actions .btn,
    .status-pending {
        width: auto;
        min-width: 80px;
        margin-right: 10px;
        margin-bottom: 10px;
    }
}

.story-meta span {
    display: flex;
    align-items: center;
}

.story-meta strong {
    color: #2c3e50;
    margin-left: 5px;
}

.story-rating {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.rating-display {
    margin-bottom: 15px;
}

.rating-stars {
    font-size: 2rem;
    color: #ffc107;
    margin-right: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.rating-average {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
}

.rating-count {
    font-size: 1rem;
    color: #666;
    margin-left: 10px;
}

.rating-form {
    margin-top: 20px;
}

.star-input {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    gap: 5px;
    flex-direction: row; /* 确保从左到右排列 */
}

.star-input input[type="radio"] {
    display: none;
}

.star-label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s, transform 0.2s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.star-label:hover,
.star-label.active {
    color: #ffc107;
    transform: scale(1.1);
}

.star-input input[type="radio"]:checked ~ .star-label {
    color: #ffc107;
}

.star-input input[type="radio"]:checked ~ .star-label ~ .star-label {
    color: #ddd;
}

.star-label:hover,
.star-label:hover ~ .star-label {
    color: #ffc107;
}

.btn-rating {
    margin-top: 10px;
}

.rating-login-prompt {
    margin-top: 20px;
    padding: 15px;
    background-color: #e8f4fd;
    border-radius: 4px;
    text-align: center;
}

.rating-login-prompt a {
    color: #3498db;
    text-decoration: none;
}

.story-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.story-content p {
    margin-bottom: 20px;
}

.author-actions {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.author-actions .btn {
    margin: 0 10px;
}

/* 评论区域 */
.comments-section {
    margin-top: 60px;
}

.comments-section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.comment-form {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.comment-form h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 20px;
}

.login-prompt {
    background-color: #e8f4fd;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 40px;
}

.login-prompt a {
    color: #3498db;
    text-decoration: none;
}

.comments-list {
    margin-bottom: 40px;
}

.comment-item, .reply-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.comment-author strong {
    font-size: 1.1rem;
    color: #2c3e50;
}

.comment-date {
    font-size: 0.9rem;
    color: #999;
}

.reply-to {
    font-size: 0.9rem;
    color: #666;
    margin-left: 10px;
}

.btn-delete-comment {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-delete-comment:hover {
    background-color: #c0392b;
}

.comment-body {
    margin-bottom: 15px;
}

.comment-body p {
    line-height: 1.6;
}

.reply-section {
    margin-top: 15px;
}

.btn-reply {
    background-color: #95a5a6;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-reply:hover {
    background-color: #7f8c8d;
}

.reply-form {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.reply-form textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 60px;
    margin-bottom: 10px;
}

.btn-cancel {
    background-color: #95a5a6;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 10px;
}

.btn-cancel:hover {
    background-color: #7f8c8d;
}

.replies-list {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
}

/* 故事库筛选 */
.library-filters {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 40px 0;
}

.filter-row {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-category, .filter-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-category label, .filter-sort label {
    font-weight: 500;
    color: #2c3e50;
}

.filter-category select, .filter-sort select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-box {
    margin-top: 20px;
    position: relative;
}

.search-box input {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-box button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-results li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.search-results li:last-child {
    border-bottom: none;
}

.search-results a {
    color: #2c3e50;
    text-decoration: none;
    display: block;
}

.search-results a:hover {
    background-color: #f8f9fa;
}

.search-results span {
    font-size: 0.9rem;
    color: #666;
    margin-left: 10px;
}

/* 个人中心 */
.profile-container {
    display: flex;
    gap: 40px;
    margin: 40px 0;
}

.profile-sidebar {
    width: 300px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.profile-avatar {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3498db;
}

.default-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 3rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #3498db;
}

.avatar-upload {
    margin-top: 20px;
}

.profile-info {
    text-align: center;
    margin-bottom: 30px;
}

.profile-info h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.profile-info p {
    color: #666;
    margin-bottom: 5px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #3498db;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.profile-main {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

/* 修改密码页面 */
.change-password-container {
    max-width: 500px;
    margin: 60px auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.password-form .form-group {
    margin-bottom: 25px;
}

.password-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.password-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.password-form input:focus {
    outline: none;
    border-color: #3498db;
}

/* 认证页面 */
.auth-container {
    max-width: 500px;
    margin: 80px auto;
}

.auth-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.auth-header p {
    color: #666;
    font-size: 1.1rem;
}

.auth-form .form-group {
    margin-bottom: 25px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.auth-form input:focus {
    outline: none;
    border-color: #3498db;
}

.auth-links {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #666;
}

.auth-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px 0;
    margin-top: 60px;
}

.footer .container {
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        margin-top: 15px;
        flex-wrap: wrap;
        width: 100%;
    }

    .nav-menu li {
        margin: 5px 10px 5px 0;
    }

    .nav-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .story-header {
        flex-direction: column;
    }

    .story-cover {
        width: 100%;
        height: 300px;
    }

    .profile-container {
        flex-direction: column;
    }

    .profile-sidebar {
        width: 100%;
    }

    .filter-row {
        flex-direction: column;
        gap: 15px;
    }

    .tab-list {
        padding: 0 10px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fadeIn {
    animation: fadeIn 0.5s ease-in;
}

/* 状态标签 */
.status-published {
    color: #27ae60;
    font-weight: bold;
}

.status-draft {
    color: #f39c12;
    font-weight: bold;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 轮播图样式 */
.carousel-container {
    margin: 20px 0 40px 0;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 80vh;
    max-height: 500px;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide a {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    color: white;
    text-decoration: none;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    color: white;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.8) 1%, rgba(0,0,0,0) 30%);
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.slide-content {
    width: 100%;
}

.slide-content h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-category {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #3498db;
    font-weight: bold;
}

.slide-stats {
    display: flex;
    gap: 20px;
    font-size: 1rem;
}

.slide-stats .views,
.slide-stats .rating,
.slide-stats .comments {
    display: flex;
    align-items: center;
}

.slide-stats .rating {
    color: #f39c12;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: #3498db;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.carousel-control:hover {
    background-color: rgba(0,0,0,0.8);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-wrapper {
        height: 50vh;
        max-height: 300px;
    }
    
    .slide-content h3 {
        font-size: 1.8rem;
    }
    
    .slide-category {
        font-size: 1rem;
    }
    
    .slide-stats {
        flex-direction: column;
        gap: 5px;
    }
    
    .slide-overlay {
        padding: 20px;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .carousel-control.prev {
        left: 10px;
    }
    
    .carousel-control.next {
        right: 10px;
    }
}

/* 增强的评论区域样式 */
.comments-section {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 3px solid #3498db;
}

.comments-section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.comments-section h2:before {
    content: "💬";
    font-size: 1.5rem;
}

.comment-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #dee2e6;
}

.comment-form h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-form h3:before {
    content: "✍️";
    font-size: 1.1rem;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    margin-bottom: 20px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
    line-height: 1.6;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.comment-form textarea::placeholder {
    color: #999;
    font-style: italic;
}

.comment-item, .reply-item {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.comment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.reply-item {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    margin-left: 30px;
    margin-top: 15px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.comment-author strong {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
}

.comment-date {
    font-size: 0.9rem;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
}

.reply-to {
    font-size: 0.9rem;
    color: #3498db;
    background-color: #e3f2fd;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.btn-delete-comment {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-delete-comment:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

.comment-body {
    margin-bottom: 15px;
    line-height: 1.6;
}

.comment-body p {
    margin-bottom: 12px;
    color: #2c3e50;
    word-wrap: break-word;
}

.reply-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #dee2e6;
}

.btn-reply {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-reply:hover {
    background-color: #5a6268;
    transform: scale(1.05);
}

.reply-form {
    margin-top: 15px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reply-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.reply-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

.btn-cancel {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.btn-cancel:hover {
    background-color: #5a6268;
}

.replies-list {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #dee2e6;
    position: relative;
}

.replies-list:before {
    content: "回复 (" attr(data-count) ")";
    position: absolute;
    top: -10px;
    left: 0;
    background-color: #fff;
    padding: 0 10px;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.no-comments {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    color: #6c757d;
    font-size: 1.1rem;
    border: 2px dashed #dee2e6;
}

.no-comments:before {
    content: "🤔";
    display: block;
    font-size: 3rem;
    margin-bottom: 15px;
}

.login-prompt {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 40px;
    border: 1px solid #2196f3;
}

.login-prompt:before {
    content: "🔐";
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
}

.login-prompt p {
    margin: 0;
    font-size: 1.1rem;
    color: #1565c0;
}

.login-prompt a {
    color: #0d47a1;
    text-decoration: none;
    font-weight: bold;
    background-color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.login-prompt a:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

/* 评分系统优化 */
.story-rating {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.rating-display {
    margin-bottom: 20px;
    text-align: center;
}

.rating-stars {
    font-size: 2rem;
    color: #ffc107;
    margin-right: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.rating-average {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.rating-count {
    font-size: 1rem;
    color: #6c757d;
    margin-left: 10px;
}

.rating-form {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.star-input {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    gap: 5px;
}

.star-input input[type="radio"] {
    display: none;
}

.star-label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s, transform 0.2s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.star-label:hover,
.star-label.active {
    color: #ffc107;
    transform: scale(1.1);
}

.star-input input[type="radio"]:checked ~ .star-label {
    color: #ffc107;
}

.star-input input[type="radio"]:checked ~ .star-label ~ .star-label {
    color: #ddd;
}

.star-label:hover,
.star-label:hover ~ .star-label {
    color: #ffc107;
}

/* 字符计数器 */
.char-count {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: right;
    margin-top: 5px;
    font-style: italic;
}

/* 优化表单样式 */
.form-control {
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* 动画效果增强 */
.comment-item {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动条美化 */
.comment-form textarea::-webkit-scrollbar,
.reply-form textarea::-webkit-scrollbar {
    width: 8px;
}

.comment-form textarea::-webkit-scrollbar-track,
.reply-form textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.comment-form textarea::-webkit-scrollbar-thumb,
.reply-form textarea::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.comment-form textarea::-webkit-scrollbar-thumb:hover,
.reply-form textarea::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 分页器样式 */
.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.pagination-item {
    display: inline-block;
}

.pagination-link {
    display: block;
    padding: 8px 12px;
    background-color: #fff;
    color: #3498db;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination-link:hover {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

.pagination-link.current {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

.pagination-item.active .pagination-link {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

.pagination-item.disabled .pagination-link {
    color: #ccc;
    cursor: not-allowed;
    background-color: #fff;
    border-color: #eee;
}

.pagination-item.disabled .pagination-link:hover {
    background-color: #fff;
    color: #ccc;
    border-color: #eee;
}

/* 管理员审核页面样式 */
.admin-review-list {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 40px 0;
}

.admin-review-list h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.review-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.3s;
}

.review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-item-header h3 {
    font-size: 1.3rem;
    margin: 0;
}

.review-item-header h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.review-item-header h3 a:hover {
    color: #3498db;
}

.review-item-header .author {
    color: #6c757d;
    font-size: 0.9rem;
}

.review-item-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

.review-item-excerpt {
    color: #495057;
    margin-bottom: 20px;
    line-height: 1.6;
}

.review-item-content {
    color: #495057;
    margin-bottom: 20px;
    line-height: 1.6;
    max-height: 200px;
    overflow: hidden;
    position: relative;
}

.review-item-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, rgba(248,249,250,0), rgba(248,249,250,1));
}

.review-item-actions {
    text-align: right;
}

.no-pending-stories {
    background-color: #fff;
    padding: 60px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    margin: 40px 0;
}

.no-pending-stories p {
    font-size: 1.2rem;
    color: #6c757d;
}

/* 故事审核详情页面样式 */
.review-story-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 40px 0;
}

.review-story-content .story-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #3498db;
}

.review-story-content .story-header h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.review-story-content .story-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

.sensitive-words-alert {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.sensitive-words-alert h3 {
    color: #856404;
    margin-bottom: 10px;
}

.sensitive-words-alert ul {
    margin: 10px 0;
    padding-left: 20px;
}

.sensitive-words-alert li {
    color: #856404;
    margin-bottom: 5px;
}

.story-content {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
}

.story-content h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.content-text {
    line-height: 1.8;
    color: #495057;
}

.review-form {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
}

.review-form h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.review-form .form-group {
    margin-bottom: 25px;
}

.review-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.review-form .radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.review-form .radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.review-form .radio-group input[type="radio"] {
    margin-right: 8px;
}

.review-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
    resize: vertical;
    min-height: 100px;
}

.review-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

.review-form .form-actions {
    margin-top: 30px;
    text-align: center;
}

.btn-default {
    background-color: #6c757d;
}

.btn-default:hover {
    background-color: #5a6268;
}

/* 管理员数据统计页面样式 */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 20px;
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.recent-stories {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 30px;
    margin: 40px 0;
}

.recent-stories h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.stories-table {
    overflow-x: auto;
}

.stories-table table {
    width: 100%;
    border-collapse: collapse;
}

.stories-table th,
.stories-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.stories-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

.stories-table tr:hover {
    background-color: #f8f9fa;
}

.stories-table a {
    color: #3498db;
    text-decoration: none;
}

.stories-table a:hover {
    text-decoration: underline;
}

.no-stories {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

/* 手动词汇查询样式 */
.manual-search-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.manual-search-form h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.search-form .form-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-form input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-form input:focus {
    outline: none;
    border-color: #3498db;
}

.search-results-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.search-results-section h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.no-search-results {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

/* 审核表单优化样式 */
.review-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid #dee2e6;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.review-form h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
    text-align: center;
}

.review-form .form-group {
    margin-bottom: 30px;
}

.review-form label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.review-form .radio-group {
    display: flex;
    gap: 30px;
    margin-top: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.review-form .radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px 25px;
    border-radius: 8px;
    background-color: #fff;
    border: 2px solid #ddd;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.review-form .radio-option:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.review-form .radio-option input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.3);
}

.review-form .radio-option input[type="radio"]:checked + .radio-label {
    color: #3498db;
    font-weight: bold;
}

.review-form .radio-option input[type="radio"]:checked {
    accent-color: #3498db;
}

.review-form .radio-option.published {
    border-color: #4caf50;
}

.review-form .radio-option.rejected {
    border-color: #f44336;
}

.review-form .radio-option.published:hover {
    border-color: #4caf50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.review-form .radio-option.rejected:hover {
    border-color: #f44336;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.2);
}

.review-form .radio-option.published input[type="radio"]:checked + .radio-label {
    color: #4caf50;
}

.review-form .radio-option.rejected input[type="radio"]:checked + .radio-label {
    color: #f44336;
}

.review-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.6;
}

.review-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.review-form .help-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 8px;
    font-style: italic;
}

.review-form .form-actions {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.review-form .form-actions .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.review-form .form-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.review-form .form-actions .btn:active {
    transform: translateY(-1px);
}

/* 高亮显示样式 */
.highlight {
    background-color: #ffeb3b;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 敏感词警告样式 */
.sensitive-words-alert {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(255, 235, 59, 0.2);
}

.sensitive-words-alert h3 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.sensitive-words-alert p {
    color: #856404;
    margin-bottom: 15px;
    line-height: 1.6;
}

.sensitive-words-alert ul {
    margin: 15px 0;
    padding-left: 25px;
}

.sensitive-words-alert li {
    color: #856404;
    margin-bottom: 8px;
    font-weight: 500;
}

/* 故事内容样式 */
.story-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.story-content h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.content-text {
    line-height: 1.8;
    color: #495057;
    font-size: 1.1rem;
    white-space: pre-wrap;
}

/* 自定义敏感词汇检索样式 */
.custom-search-section {
    background-color: #e3f2fd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #2196f3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
}

.custom-search-section h3 {
    font-size: 1.3rem;
    color: #0d47a1;
    margin-bottom: 15px;
}

.custom-search-form .form-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.custom-search-form input {
    flex: 1;
    padding: 12px;
    border: 2px solid #2196f3;
    border-radius: 4px;
    font-size: 1rem;
}

.custom-search-form input:focus {
    outline: none;
    border-color: #0d47a1;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}

.custom-search-form button {
    padding: 12px 20px;
    font-size: 1rem;
}

/* 个人中心样式 */
.profile-container {
    display: flex;
    gap: 40px;
    margin: 40px 0;
}

.profile-sidebar {
    width: 300px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.profile-avatar {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3498db;
}

.default-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 3rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #3498db;
}

.avatar-upload {
    margin-top: 20px;
}

.profile-info {
    text-align: center;
    margin-bottom: 30px;
}

.profile-info h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.profile-info p {
    color: #666;
    margin-bottom: 5px;
}

.profile-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #3498db;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.profile-main {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

/* 管理员统计数据特殊样式 */
.profile-stats .stat-number.admin-stat {
    color: #9c27b0;
}

/* 用户类型提示样式 */
.user-type-hint {
    margin-top: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.user-exists {
    color: #28a745;
}

.admin-user {
    color: #9c27b0;
}

.normal-user {
    color: #17a2b8;
}

.user-not-exists {
    color: #dc3545;
}

/* 分页样式 */
.pagination-container {
    margin: 30px 0;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 2px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pagination .current {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination a.disabled {
    background-color: #f5f5f5;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination a.disabled:hover {
    background-color: #f5f5f5;
    color: #999;
    border-color: #ddd;
    transform: none;
    box-shadow: none;
}

/* 搜索框样式 */
.search-box {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
    border-color: #3498db;
}

.search-box button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.search-box button:hover {
    background-color: #2980b9;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* 排行榜页面样式 */
.leaderboard-tabs {
    margin: 30px 0;
}

.leaderboard-tabs .tab-list {
    border-bottom: 2px solid #ddd;
}

.leaderboard-tabs .tab-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    transition: all 0.3s;
}

.leaderboard-tabs .tab-item:hover {
    background-color: #f8f9fa;
}

.leaderboard-tabs .tab-item.active {
    border-bottom-color: #3498db;
    color: #3498db;
    background-color: #f8f9fa;
}

.leaderboard-section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.leaderboard-list {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 40px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-item:hover {
    background-color: #f8f9fa;
}

.leaderboard-item .rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.leaderboard-item:nth-child(1) .rank {
    background-color: #ffd700;
    color: #fff;
}

.leaderboard-item:nth-child(2) .rank {
    background-color: #c0c0c0;
    color: #fff;
}

.leaderboard-item:nth-child(3) .rank {
    background-color: #cd7f32;
    color: #fff;
}

.leaderboard-item .story-info {
    flex: 1;
}

.leaderboard-item .story-info h3 {
    margin-bottom: 10px;
}

.leaderboard-item .story-info h3 a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.2rem;
}

.leaderboard-item .story-info h3 a:hover {
    color: #3498db;
}

.story-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.story-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
}

.story-stats .comments,
.story-stats .rating,
.story-stats .views {
    display: flex;
    align-items: center;
}

.story-stats .rating {
    color: #f39c12;
}
.logo-a{
    display: inline-block;
    height: 50px;
}
.nav-logo{
    height: 50px;
}
.logo-a img{
    height: 100%;
}